//
//  EMProgressGradientView.h
//  EasyMoney
//
//  Created by zh on 2020/1/12.
//  Copyright © 2020 zh. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface EMProgressGradientStyleModel : NSObject

//线宽
@property (nonatomic, assign) CGFloat lineWidth;
//原点
@property (nonatomic, assign) CGPoint origin;
//半径
@property (nonatomic, assign) CGFloat radius;
//开始角度
@property (nonatomic, assign) CGFloat startAngle;
@property (nonatomic, assign) CGFloat endAngle;
//渐变色开始颜色
@property (nonatomic, strong) UIColor *startColor;
//结束颜色
@property (nonatomic, strong) UIColor *endColor;

@property (nonatomic, strong) UIColor *backgroundColor;

@end

@interface EMProgressGradientView : UIView

@property (nonatomic, assign) CGFloat progress;
- (instancetype)initWithFrame:(CGRect)frame ProgressGradientModel:(EMProgressGradientStyleModel *)style;

@end

NS_ASSUME_NONNULL_END
